package com.flying.pas.security.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="t_org",title="", table="t_org", primaryKeys={"org_id"})
public class Org extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "t_org";
	
	public final static String CODE = "code";
	public final static String CREATE_TIME = "create_time";
	public final static String CREATOR = "creator";
	public final static String IS_LEAF = "is_leaf";
	public final static String NAME = "name";
	public final static String ORG_ID = "org_id";
	public final static String PARENT_ID = "parent_id";
	public final static String REMARKS = "remarks";
	public final static String UPDATE_TIME = "update_time";
	public final static String UPDATOR = "updator";
	
	
	@Param(value=CODE,   required=true,   maxlength=20,	desc="机构代码" )
	private String code;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	@Param(value=CREATOR,   required=false,   maxlength=100,	desc="创建人" )
	private String creator;
	
	@Param(value=IS_LEAF,   required=false,   maxlength=0,	desc="是否页节点（0：否；1：是）" )
	private Integer isLeaf;
	
	@Param(value=NAME,   required=true,   maxlength=100,	desc="机构名称" )
	private String name;
	
	@Param(value=ORG_ID,   required=true,   maxlength=0,	desc="机构ID" , generator="com.flying.pas.model.Org.orgId")
	private Long orgId;
	
	@Param(value=PARENT_ID,   required=false,   maxlength=0,	desc="上级机构ID" )
	private Long parentId;
	
	@Param(value=REMARKS,   required=false,   maxlength=500,	desc="说明" )
	private String remarks;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="修改时间" )
	private Date updateTime;
	
	@Param(value=UPDATOR,   required=false,   maxlength=100,	desc="修改人" )
	private String updator;
	
	
	public String getCode() {
		return this.code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getCreator() {
		return this.creator;
	}
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public Integer getIsLeaf() {
		return this.isLeaf;
	}
	
	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Long getOrgId() {
		return this.orgId;
	}
	
	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}
	
	public Long getParentId() {
		return this.parentId;
	}
	
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	
	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdator() {
		return this.updator;
	}
	
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	

}